<?php require_once('../Connections/elevate954.php'); ?>

<?php require_once( "../webassist/security_assist/helper_php.php" ); ?>
<?php
if (!WA_Auth_RulePasses("Logged in to MEMBERS")){
	WA_Auth_RestrictAccess("login.php");
}

$err = "";

if($_POST['button'] == "UPLOAD")
{
	
	

 	$updateData = "UPDATE MEMBERS SET COMPANY_LOGO='".$_SESSION['SecurityAssist_id'].'_'.$_FILES['COMPANY_LOGO']["name"]."' 
		WHERE id=".$_SESSION['SecurityAssist_id'];
				mysql_query($updateData) or die(mysql_error());

		
	move_uploaded_file($_FILES["COMPANY_LOGO"]["tmp_name"],"../image_uploads/" .$_SESSION['SecurityAssist_id'].'_'.$_FILES["COMPANY_LOGO"]["name"]);

			
		session_start();
		$_SESSION['COMPANY_LOGO'] = $_FILES['COMPANY_LOGO']["name"];
		$err = "successimg";
	
	
}


if($_POST['button'] == "CHANGE PASSWORD")
{
	
	

 $updateData = "UPDATE MEMBERS SET MEMBER_USERNAME='".$_POST['MEMBER_USERNAME']."',MEMBER_PASSWORD='".$_POST['MEMBER_PASSWORD']."' 
		WHERE id=".$_SESSION['SecurityAssist_id'];
				mysql_query($updateData) or die(mysql_error());
				$err = "successpwd";

		
 		session_start();
		$_SESSION['MEMBER_USERNAME'] = $_POST['MEMBER_USERNAME'];
		$_SESSION['MEMBER_PASSWORD'] = $_POST['MEMBER_PASSWORD'];
				
		
	
	
	
}



if($_POST['button'] == "SUBMIT")
{
	
	if($_POST['MEMBER_FIRST_NAME'] == "")
	{
		$err = "First Name";
	}
	
	if($_POST['MEMBER_LAST_NAME'] == "")
	{
		$err .= ", Last Name";
	}
	
	if($_POST['ADDRESS'] == "")
	{
		$err .= ", Address";
	}
	if($_POST['ADDRESS2'] == "")
	{
		$err .= ", Address2";
	}
	if($_POST['CITY'] == "")
	{
		$err .= ", City";
	}
	if($_POST['STATE'] == "")
	{
		$err .= ", State";
	}
	if($_POST['ZIP'] == "")
	{
		$err .= ", Postal Code";
	}
	if($_POST['PHONE_NUMBER'] == "")
	{
		$err .= ", Phone Number";
	}
	if($_POST['EMAIL'] == "")
	{
		$err .= ", Email";
	}
	
	if($err == '')
	{
		 $updateData = "UPDATE MEMBERS SET MEMBER_FIRST_NAME='".addslashes($_POST['MEMBER_FIRST_NAME'])."' ,MEMBER_LAST_NAME ='".addslashes($_POST['MEMBER_LAST_NAME'])."', ADDRESS ='".addslashes($_POST['ADDRESS'])."', ADDRESS2 ='".addslashes($_POST['ADDRESS2'])."', CITY='".addslashes($_POST['CITY'])."',STATE ='".addslashes($_POST['STATE'])."',ZIP =".addslashes($_POST['ZIP']).",PHONE_NUMBER =".addslashes($_POST['PHONE_NUMBER']).", EMAIL ='".addslashes($_POST['EMAIL'])."' WHERE id=".$_SESSION['SecurityAssist_id'].";";
		
		mysql_query($updateData) or die(mysql_error());
		
		$err = "successinfo";
		session_start();
		$_SESSION['MEMBER_FIRST_NAME'] = $_POST['MEMBER_FIRST_NAME'];
		$_SESSION['MEMBER_LAST_NAME'] = $_POST['MEMBER_LAST_NAME'];
		$_SESSION['ADDRESS'] = $_POST['ADDRESS'];
		$_SESSION['ADDRESS2'] = $_POST['ADDRESS2'];
		$_SESSION['CITY'] = $_POST['CITY'];
		$_SESSION['STATE'] = $_POST['STATE'];
		$_SESSION['ZIP'] = $_POST['ZIP'];
		$_SESSION['PHONE_NUMBER'] = $_POST['PHONE_NUMBER'];
		$_SESSION['EMAIL'] = $_POST['EMAIL'];
		
	}
}

 $_SESSION['SecurityAssist_id'];
$get_user = "select * from MEMBERS where id=".$_SESSION['SecurityAssist_id']."";
$res_user = mysql_query($get_user) or die(mysql_error());
$row_user = mysql_fetch_array($res_user);

//print_r($_SESSION);
?>
<!DOCTYPE html>
<!-- 
Template Name: Conquer - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.0.3
Version: 1.5.2
Author: KeenThemes
Website: http://www.keenthemes.com/
Purchase: http://themeforest.net/item/conquer-responsive-admin-dashboard-template/3716838?ref=keenthemes
-->
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js"><!-- InstanceBegin template="/Templates/MEMBERS_AREA_TEMPLATE.dwt.php" codeOutsideHTMLIsLocked="false" -->
<!-- InstanceBeginEditable name="head" --><head>
<!-- InstanceEndEditable -->
<!--<![endif]-->
<!-- BEGIN HEAD -->

<meta charset="utf-8"/>
<!-- InstanceBeginEditable name="doctitle" -->
<title>ELEVATE954 - MEMBERS</title>
<!-- InstanceEndEditable -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta content="" name="description"/>
<meta content="" name="author"/>
<meta name="MobileOptimized" content="320">
<!-- BEGIN GLOBAL MANDATORY STYLES -->
<link href="assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
<!-- END GLOBAL MANDATORY STYLES -->
<!-- BEGIN THEME STYLES -->
<link href="assets/css/style-conquer.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/style.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/style-responsive.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/plugins.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/themes/default.css" rel="stylesheet" type="text/css" id="style_color"/>
<link href="assets/css/custom.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/fancybox/source/jquery.fancybox.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/pages/portfolio.css" rel="stylesheet" type="text/css"/>
<!-- END THEME STYLES -->
<link rel="shortcut icon" href="favicon.ico"/>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed">
<!-- BEGIN HEADER -->
<div class="header navbar navbar-inverse navbar-fixed-top">
	<!-- BEGIN TOP NAVIGATION BAR -->
	<div class="header-inner">
		<!-- BEGIN LOGO -->
		<a class="navbar-brand" href="#">
		<img src="assets/img/logo.png" alt="logo" class="img-responsive"/>
		</a>
	  <form class="search-form search-form-header" role="form" action="index.html">
	  </form>
		<!-- END LOGO -->
		<!-- BEGIN RESPONSIVE MENU TOGGLER -->
		<a href="javascript:;" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
		<img src="assets/img/menu-toggler.png" alt=""/>
		</a>
		<!-- END RESPONSIVE MENU TOGGLER -->
		<!-- BEGIN TOP NAVIGATION MENU -->
		<ul class="nav navbar-nav pull-right">
			<!-- BEGIN NOTIFICATION DROPDOWN -->
			<!-- END NOTIFICATION DROPDOWN -->
			<!-- BEGIN INBOX DROPDOWN -->
			<!-- END INBOX DROPDOWN -->
			<!-- BEGIN TODO DROPDOWN -->
			<li class="dropdown" id="header_task_bar">
			  <ul class="dropdown-menu extended tasks">
				  <li>
						<p>
							 You have 12 pending tasks
						</p>
					</li>
					<li>
						<ul class="dropdown-menu-list scroller" style="height: 250px;">
							<li>
								<a href="#">
								<span class="task">
									<span class="desc">
										 New release v1.2
									</span>
									<span class="percent">
										 30%
									</span>
								</span>
								<span class="progress">
									<span style="width: 40%;" class="progress-bar progress-bar-success" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100">
										<span class="sr-only">
											 40% Complete
										</span>
									</span>
								</span>
								</a>
							</li>
							<li>
								<a href="#">
								<span class="task">
									<span class="desc">
										 Application deployment
									</span>
									<span class="percent">
										 65%
									</span>
								</span>
								<span class="progress progress-striped">
									<span style="width: 65%;" class="progress-bar progress-bar-danger" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100">
										<span class="sr-only">
											 65% Complete
										</span>
									</span>
								</span>
								</a>
							</li>
							<li>
								<a href="#">
								<span class="task">
									<span class="desc">
										 Mobile app release
									</span>
									<span class="percent">
										 98%
									</span>
								</span>
								<span class="progress">
									<span style="width: 98%;" class="progress-bar progress-bar-success" aria-valuenow="98" aria-valuemin="0" aria-valuemax="100">
										<span class="sr-only">
											 98% Complete
										</span>
									</span>
								</span>
								</a>
							</li>
							<li>
								<a href="#">
								<span class="task">
									<span class="desc">
										 Database migration
									</span>
									<span class="percent">
										 10%
									</span>
								</span>
								<span class="progress progress-striped">
									<span style="width: 10%;" class="progress-bar progress-bar-warning" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100">
										<span class="sr-only">
											 10% Complete
										</span>
									</span>
								</span>
								</a>
							</li>
							<li>
								<a href="#">
								<span class="task">
									<span class="desc">
										 Web server upgrade
									</span>
									<span class="percent">
										 58%
									</span>
								</span>
								<span class="progress progress-striped">
									<span style="width: 58%;" class="progress-bar progress-bar-info" aria-valuenow="58" aria-valuemin="0" aria-valuemax="100">
										<span class="sr-only">
											 58% Complete
										</span>
									</span>
								</span>
								</a>
							</li>
							<li>
								<a href="#">
								<span class="task">
									<span class="desc">
										 Mobile development
									</span>
									<span class="percent">
										 85%
									</span>
								</span>
								<span class="progress progress-striped">
									<span style="width: 85%;" class="progress-bar progress-bar-success" aria-valuenow="85" aria-valuemin="0" aria-valuemax="100">
										<span class="sr-only">
											 85% Complete
										</span>
									</span>
								</span>
								</a>
							</li>
							<li>
								<a href="#">
								<span class="task">
									<span class="desc">
										 New UI release
									</span>
									<span class="percent">
										 18%
									</span>
								</span>
								<span class="progress progress-striped">
									<span style="width: 18%;" class="progress-bar progress-bar-important" aria-valuenow="18" aria-valuemin="0" aria-valuemax="100">
										<span class="sr-only">
											 18% Complete
										</span>
									</span>
								</span>
								</a>
							</li>
						</ul>
					</li>
					<li class="external">
						<a href="#">See all tasks <i class="fa fa-angle-right"></i></a>
					</li>
				</ul>
			</li>
			<!-- END TODO DROPDOWN -->
			<li class="devider">
				 &nbsp;
			</li>
			<!-- BEGIN USER LOGIN DROPDOWN -->
			<li class="dropdown user">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
				<img src="../image_uploads/<?php echo $_SESSION['COMPANY_LOGO']; ?>" alt="" width="35" height="35"/>
				<span class="username">
					 <?php echo $_SESSION['MEMBER_FIRST_NAME']; ?> <?php echo $_SESSION['MEMBER_LAST_NAME']; ?>
				</span>
				<i class="fa fa-angle-down"></i>
				</a>
				<ul class="dropdown-menu">
					<li>
						<a href="profile.php"><i class="fa fa-user"></i> My Profile</a>
					</li>
					
					<li class="divider">
					</li>
				</li>
				<li>
					<a href="login.php"><i class="fa fa-key"></i> Log Out</a>
				</li>
			</ul>
		</li>
		<!-- END USER LOGIN DROPDOWN -->
	</ul>
	<!-- END TOP NAVIGATION MENU -->
</div>
<!-- END TOP NAVIGATION BAR -->
</div>
<!-- END HEADER -->
<div class="clearfix">
</div>
<!-- BEGIN CONTAINER -->
<div class="page-container">
<!-- BEGIN SIDEBAR -->
<div class="page-sidebar-wrapper">
	<div class="page-sidebar-wrapper">
		<div class="page-sidebar navbar-collapse collapse">
			<!-- BEGIN SIDEBAR MENU -->
			<ul class="page-sidebar-menu">
				<li class="sidebar-toggler-wrapper">
					<!-- BEGIN SIDEBAR TOGGLER BUTTON -->
					<div class="sidebar-toggler">
					</div>
					<div class="clearfix">
					</div>
					<!-- BEGIN SIDEBAR TOGGLER BUTTON -->
				</li>
				<li>
					<form class="search-form" role="form" action="index.html" method="get">
						<div class="input-icon right">
							<i class="fa fa-search"></i>
							<input type="text" class="form-control input-medium input-sm" name="query" placeholder="Search...">
						</div>
					</form>
				</li>
				<li class="start ">
					<a href="dashboard.php">
					<i class="fa fa-home"></i>
					<span class="title">
						Dashboard
					</span>
					</a>
				</li>
                
                <li class="start ">
					<a href="profile.php">
					<i class="fa fa-home"></i>
					<span class="title">
						PROFILE
					</span>
					</a>
				</li>
                <li class="start ">
					<a href="membership.php">
					<i class="fa fa-home"></i>
					<span class="title">
						MEMBERSHIP
					</span>
					</a>
				</li>
                
                <li class="start ">
					<a href="workouts.php">
					<i class="fa fa-home"></i>
					<span class="title">
						WORKOUTS
					</span>
					</a>
				</li>
                
                <li class="start ">
					<a href="members_news.php">
					<i class="fa fa-home"></i>
					<span class="title">
						ELEVATE954 NEWS
					</span>
					</a>
				</li>
                
                 <li class="start ">
					<a href="schedule.php">
					<i class="fa fa-home"></i>
					<span class="title">
						SCHEDULES
					</span>
					</a>
				</li>
                
                <li class="start ">
					<a href="member_contactus.php">
					<i class="fa fa-home"></i>
					<span class="title">
						CONTACT US
					</span>
					</a>
				</li>
                
                <li class="start ">
					<a href="logout.php">
					<i class="fa fa-home"></i>
					<span class="title">
						LOGOUT
					</span>
					</a>
				</li>
				
			</ul>
			<!-- END SIDEBAR MENU -->
		</div>
	</div>
</div>
<!-- END SIDEBAR -->
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
	<div class="page-content-wrapper">
		<div class="page-content">
			<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<div class="modal fade" id="portlet-config" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-dialog">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
							<h4 class="modal-title">Modal title</h4>
						</div>
						<div class="modal-body">
							 Widget settings form goes here
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-success">Save changes</button>
							<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
						</div>
					</div>
					<!-- /.modal-content -->
				</div>
				<!-- /.modal-dialog -->
			</div>
			<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<!-- BEGIN STYLE CUSTOMIZER -->
			<div class="theme-panel hidden-xs hidden-sm">
			  <div class="theme-options">
				  <div class="theme-option theme-colors clearfix">
						<span>
							 Theme Color
						</span>
						<ul>
							<li class="color-black current color-default tooltips" data-style="default" data-original-title="Default">
							</li>
							<li class="color-grey tooltips" data-style="grey" data-original-title="Grey">
							</li>
							<li class="color-blue tooltips" data-style="blue" data-original-title="Blue">
							</li>
							<li class="color-red tooltips" data-style="red" data-original-title="Red">
							</li>
							<li class="color-light tooltips" data-style="light" data-original-title="Light">
							</li>
						</ul>
					</div>
					<div class="theme-option">
						<span>
							 Layout
						</span>
						<select class="layout-option form-control input-small">
							<option value="fluid" selected="selected">Fluid</option>
							<option value="boxed">Boxed</option>
						</select>
					</div>
					<div class="theme-option">
						<span>
							 Header
						</span>
						<select class="header-option form-control input-small">
							<option value="fixed" selected="selected">Fixed</option>
							<option value="default">Default</option>
						</select>
					</div>
					<div class="theme-option">
						<span>
							 Sidebar
						</span>
						<select class="sidebar-option form-control input-small">
							<option value="fixed">Fixed</option>
							<option value="default" selected="selected">Default</option>
						</select>
					</div>
					<div class="theme-option">
						<span>
							 Sidebar Position
						</span>
						<select class="sidebar-pos-option form-control input-small">
							<option value="left" selected="selected">Left</option>
							<option value="right">Right</option>
						</select>
					</div>
					<div class="theme-option">
						<span>
							 Footer
						</span>
						<select class="footer-option form-control input-small">
							<option value="fixed">Fixed</option>
							<option value="default" selected="selected">Default</option>
						</select>
					</div>
				</div>
			</div>
			<!-- END BEGIN STYLE CUSTOMIZER -->
			<!-- BEGIN PAGE HEADER-->
            
<div class="row">
			<div class="col-md-12">
					<!-- BEGIN PAGE TITLE & BREADCRUMB-->
					
					<!--<ul class="page-breadcrumb breadcrumb">
						<li>
							<i class="fa fa-home"></i>
							<a href="index.html">Home</a>
							<i class="fa fa-angle-right"></i>
						</li>
						<li>
							<a href="#">Page Layouts</a>
							<i class="fa fa-angle-right"></i>
						</li>
						<li>
							<a href="#">Blank Page</a>
						</li>
					</ul>-->
					<!-- END PAGE TITLE & BREADCRUMB-->
				</div>
			</div>
			<!-- END PAGE HEADER-->
			<!-- BEGIN PAGE CONTENT-->
			<div class="row">
				<div class="col-md-12"><!-- InstanceBeginEditable name="BODY_AREA" -->
                
                <?php if($err == "successinfo")
                {
					?><div class="alert alert-success">
                    		<strong>Success!</strong> Personal Info Has Been Updated.
                    	</div>
					<?php
                }
				elseif($err == "successimg")
				{
					?><div class="alert alert-success">
                    		<strong>Success!</strong> Image Has Been Updated.
                    
                    </div>
                    <?
				}
				elseif($err == "successpwd")
				{
					?><div class="alert alert-success">
                    		<strong>Success!</strong> Password Has Been Updated.
                    </div>
                    
                    <?
				}
				
				?>
					
					<?php if($err != "" && $err != "successinfo" && $err != "successpwd" && $err != "successimg" )
                {
					?>
                    		<div class="alert alert-danger">
							<strong> Error! </strong>Please Fill These Fields <?php echo $err; ?>.
							</div>		
				<?php
				}
				?>			
							
                <div class="dfsdfsd hidden-lg"><img src="../White_Transparent.png" width="275" height="155" alt=""/><br><br>
                </div>
                <!-- BEGIN PAGE TITLE & BREADCRUMB-->
					<h3 class="page-title">
					USERS PROFILE
					</h3>
					<ul class="page-breadcrumb breadcrumb">
						<li>
							<i class="fa fa-home"></i>
							<a href="dashboard.php">DASHBOARD</a>
							<i class="fa fa-angle-right"></i>
						</li>
						<li>
							<a href="profile.php">USERS PROFILE</a>
							<i class="fa fa-angle-right"></i>
						</li>
					</ul>
					<!-- END PAGE TITLE & BREADCRUMB-->
                    <?php
					if($_GET['err'] == "201")
					{
						echo "<span class='redtext'>Your First Name Field Is Empty.</span>";
					}
					if($_GET['err'] == "202")
					{
						echo "<span class='redtext'>Your Last Name Field Is Empty.</span>";
					}
					if($_GET['err'] == "203")
					{
						echo "<span class='redtext'>Your Address Field Is Empty.</span>";
					}
					if($_GET['err'] == "204")
					{
						echo "<span class='redtext'>Your Address2 Field Is Empty.</span>";
					}
					if($_GET['err'] == "205")
					{
						echo "<span class='redtext'>Your City Field Is Empty.</span>";
					}
					if($_GET['err'] == "206")
					{
						echo "<span class='redtext'>Your State Field Is Empty.</span>";
					}
					if($_GET['err'] == "207")
					{
						echo "<span class='redtext'>Your Zip Code Field Is Empty.</span>";
					}
					if($_GET['err'] == "208")
					{
						echo "<span class='redtext'>Your Phone Number Field Is Empty.</span>";
					}
					if($_GET['err'] == "209")
					{
						echo "<span class='redtext'>Your Email Address Field Is Empty.</span>";
					}
					
					?>
                    <?php //print_r($_SESSION);?>
<div class="row profile">
				<div class="col-md-12">
					<!--BEGIN TABS-->
					<div class="tabbable tabbable-custom">
						<ul class="nav nav-tabs">
							<li class="active">
								<a href="#tab_1_3" data-toggle="tab">Profile Information</a>
							</li>
						</ul>
						<div class="tab-content"><!--tab_1_2-->
							<div class="tab-pane active" id="tab_1_3">
								<div class="row profile-account">
								  <div class="col-md-3">
										<ul class="ver-inline-menu tabbable margin-bottom-10">
											<li class="active">
												<a data-toggle="tab" href="#tab_1-1">
												<i class="fa fa-cog"></i> Personal Info </a>
												<span class="after">
												</span>
											</li>
											<li>
												<a data-toggle="tab" href="#tab_2-2"><i class="fa fa-picture-o"></i> Change Image</a>
											</li>
											<li>
												<a data-toggle="tab" href="#tab_3-3"><i class="fa fa-lock"></i> Change Password</a>
											</li>
<!--											<li>
												<a data-toggle="tab" href="#tab_4-4"><i class="fa fa-eye"></i> Privacity Settings</a>
											</li>-->
										</ul>
									</div>
								  <div class="col-md-9">
									  <div class="tab-content">
											<div id="tab_1-1" class="tab-pane active">
												<form action="profile.php" method="POST" enctype="multipart/form-data" name="form_personal" accept-charset="UTF-8">
													<div class="form-group">
														<label class="control-label">
														  <input name="ID" type="hidden" id="ID" placeholder="ID" value="<?php echo $_SESSION['id']; ?>"> 
														  <br>

													    First Name</label>
														<input name="MEMBER_FIRST_NAME" type="text" class="form-control" id="MEMBER_FIRST_NAME" placeholder="John" value="<?php echo $row_user['MEMBER_FIRST_NAME']; ?>"/>
													</div>
													<div class="form-group">
														<label class="control-label">Last Name</label>
														<input name="MEMBER_LAST_NAME" type="text" class="form-control" id="MEMBER_LAST_NAME" placeholder="LAST NAME" value="<?php echo $row_user['MEMBER_LAST_NAME']; ?>"/>
													</div>
											
                                                    
                                                    
                                                    <div class="form-group">
														<label class="control-label">Address</label>
														<input name="ADDRESS" type="text" class="form-control" id="ADDRESS" placeholder="Address" value="<?php echo $row_user['ADDRESS']; ?>"/>
													</div>
                                                    
                                                    <div class="form-group">
														<label class="control-label">Address2</label>
														<input name="ADDRESS2" type="text" class="form-control" id="ADDRESS2" placeholder="Address2" value="<?php echo $row_user['ADDRESS2']; ?>"/>
													</div>
                                                    
                                                    <div class="form-group">
														<label class="control-label">City</label>
														<input name="CITY" type="text" class="form-control" id="CITY" placeholder="City" value="<?php echo $row_user['CITY']; ?>"/>
													</div>
                                                    
													<div class="form-group">
														<label class="control-label">State</label>
														<input name="STATE" type="text" class="form-control" id="STATE" placeholder="State" value="<?php echo $row_user['STATE']; ?>"/>
													</div>
                                                    
                                                    
                                                    <div class="form-group">
														<label class="control-label">Zip Code</label>
														<input name="ZIP" type="text" class="form-control" id="ZIP" placeholder="Zip Code" value="<?php echo $row_user['ZIP']; ?>"/>
													</div>
                                                    
                                                    <div class="form-group">
														<label class="control-label">Phone Number</label>
														<input name="PHONE_NUMBER" type="text" class="form-control" id="PHONE_NUMBER" placeholder="Phone Number" value="<?php echo $row_user['PHONE_NUMBER']; ?>"/>
													</div>
                                                    
                                                    <div class="form-group">
														<label class="control-label">Email Address</label>
														<input name="EMAIL" type="text" class="form-control" id="EMAIL" placeholder="Email Address" value="<?php echo $row_user['EMAIL']; ?>"/>
													</div>
                                                    
													<div class="margiv-top-10">
                                                    <input type="submit" name="button" id="button" value="SUBMIT" class="btn btn-success">
													</div>
												</form>
											</div>
											<div id="tab_2-2" class="tab-pane">
												<p>
													 Click browse to upload a image for your profile
												</p>
												<form name="form_image" method="post" enctype="multipart/form-data" action="">
													<div class="form-group">
														<div class="thumbnail" style="width: 310px;">
										<?php
										if($row_user['COMPANY_LOGO'] == "")
										{
										?>					
                                                            <img src="http://www.placehold.it/310x170/EFEFEF/AAAAAA&amp;text=no+image" alt="">
                                         <?php } 
										 else
										 { ?>
										<img src="../image_uploads/<?php echo $row_user['COMPANY_LOGO']; ?>" alt="">	 
										 <?php }
										 
										 ?>                   
                                                            
                                                            
														</div>
														<div class="margin-top-10 fileupload fileupload-new" data-provides="fileupload">
															<div class="input-group input-group-fixed">
																<span class="input-group-btn">
																	<span class="uneditable-input">
																		<i class="fa fa-file fileupload-exists"></i>
																		<span class="fileupload-preview">
																		</span>
																	</span>
																</span>
																<span class="btn btn-default btn-file">
																	<span class="fileupload-new">
																		<i class="fa fa-paper-clip"></i> Select file
																	</span>
																	<span class="fileupload-exists">
																		<i class="fa fa-undo"></i> Change
																	</span>
												<input name="COMPANY_LOGO" type="file" class="default" id="COMPANY_LOGO"/>
																</span>
																<a href="#" class="btn  fileupload-exists" data-dismiss="fileupload"></a>
                                                                
															</div>
														</div>
													</div>
													<div class="margin-top-10">
														<!--<a href="#" class="btn btn-success">Submit</a>-->
                                          <input type="submit" name="button" id="button" value="UPLOAD" class="btn  btn-success">
														<a href="#" class="btn btn-default">Cancel</a>
													</div>
												</form>
											</div>
											<div id="tab_3-3" class="tab-pane">
												<form name="form_password" method="post" action="">
													<div class="form-group">
														<label class="control-label">USERNAME</label>
														<input name="MEMBER_USERNAME" type="text" class="form-control" id="MEMBER_USERNAME" placeholder="USERNAME" value="<?php echo $_SESSION['MEMBER_USERNAME']; ?>"/>
													</div>
													<div class="form-group">
														<label class="control-label">PASSWORD</label>
														<input name="MEMBER_PASSWORD" type="password" class="form-control" id="MEMBER_PASSWORD" placeholder="PASSWORD" value="<?php echo $_SESSION['MEMBER_PASSWORD']; ?>"/>
													</div>
													
													<div class="margin-top-10">
					<input type="submit" name="button" id="button" value="CHANGE PASSWORD" class="btn  btn-success">
														<a href="#" class="btn btn-default">Cancel</a>
													</div>
												</form>
											</div>
											<div id="tab_4-4" class="tab-pane"></div>
								    </div>
								  </div>
									<!--end col-md-9-->
								</div>
							</div>
							<!--end tab-pane--><!--end tab-pane-->
						</div>
					</div>
					<!--END TABS-->
				</div>
			</div>
<!-- InstanceEndEditable -->
					 
				</div>
			</div>
			<!-- END PAGE CONTENT-->
		</div>
	</div>
</div>
<!-- END CONTENT -->
</div>
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<div class="footer">
<div class="footer-inner">
	 2013 &copy; ELEVATE954.
</div>
<div class="footer-tools">
	<span class="go-top">
		<i class="fa fa-angle-up"></i>
	</span>
</div>
</div>
<!-- END FOOTER -->
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->
<!--[if lt IE 9]>
<script src="assets/plugins/respond.min.js"></script>
<script src="assets/plugins/excanvas.min.js"></script> 
<![endif]-->
<script src="assets/plugins/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<!-- IMPORTANT! Load jquery-ui-1.10.3.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->
<script src="assets/plugins/jquery-ui/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="assets/plugins/bootstrap-hover-dropdown/twitter-bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery.cokie.min.js" type="text/javascript"></script>
<script src="assets/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<!-- END CORE PLUGINS -->
<script src="assets/scripts/app.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script>
<script src="assets/plugins/gmaps/gmaps.js" type="text/javascript"></script>
<script src="assets/scripts/app.js"></script>
<script src="assets/scripts/contact-us.js"></script>
<script>
jQuery(document).ready(function() {    
   App.init();
});
</script>
<script type="text/javascript" src="assets/plugins/jquery-mixitup/jquery.mixitup.min.js"></script>
<script type="text/javascript" src="assets/plugins/fancybox/source/jquery.fancybox.pack.js"></script>
<!-- END PAGE LEVEL PLUGINS -->
<script src="assets/scripts/app.js"></script>
<script src="assets/scripts/portfolio.js"></script>
<script>
jQuery(document).ready(function() {    
   App.init();
   Portfolio.init();
});
</script>
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
<!-- InstanceEnd --></html>